export const OPEN_PAGES = ['/', '/login', '/404', '/forgot', '/firstPage'];
export const BOOKEING_ROLE_PAGES = [
  '/booking',
  '/searchmeeting',
  '/meeting/func/create',
];

export const isDev = !process.env.NODE_ENV || process.env.NODE_ENV === 'dev';
export const isProduction = process.env.NODE_ENV === 'production';

export const injectedModule = process.env.UMI_ENV || 'dfocus';

export function isOpenPages(pathname: string) {
  return OPEN_PAGES.some((p) => p === pathname);
}

export function isBookingRolePages(pathname: string) {
  return BOOKEING_ROLE_PAGES.some((p) => pathname.indexOf(p) !== -1);
}
